# FROM python:3.8.16
FROM sunmi-docker-images-registry.cn-hangzhou.cr.aliyuncs.com/public/python:3.8.16
WORKDIR /app
COPY  . ./
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install vim
RUN apt-get -y install less
RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip3 config set global.trusted-host pypi.douban.com
RUN pip3 install --upgrade pip
RUN pip3 install -e .
COPY Apprun.sh /Apprun.sh
RUN chmod -R 777 Apprun.sh
COPY coreJob/job.sh /coreJob/job.sh
RUN chmod -R 777 coreJob/job.sh
CMD ["./Apprun.sh"]